home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6203 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.iadfw.net!usenet
  2. From: alpet@airmail.net (Adam Peterson)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Help - pointer notation please...
  5. Date: Fri, 23 Feb 1996 05:22:15 GMT
  6. Organization: customer of Internet America
  7. Message-ID: <4gjc1r$o0h@news-f.iadfw.net>
  8. References: <4gjelv$2ek@news.mistral.co.uk>
  9. NNTP-Posting-Host: dal24-12.ppp.iadfw.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. mikebarnard@mistral.co.uk (Mike Barnard) wrote:
  13.  
  14. >Hi.
  15.  
  16. >I've read my C book. I've gotten th C FAQ. I've read the file
  17. >"ptrtutor.txt" a tutorial on pointers. But I havn't seen explained the
  18. >following. Can you help?
  19.  
  20. >Sometimes when prototyping a function the function name is pre-fixed
  21. >by an asterisk. Why? What does it mean?
  22.  
  23. >Putting an asterisk before a variable name declares it as a pointer
  24. >variable. Putting one before the variable in use means you want to
  25. >access the data pointed to. Why is there sometimes an asterisk AFTER a
  26. >variable?
  27.  
  28. Putting the asterisk before the function name means the function
  29. returns a pointer...as for the second question, don't know.  Never
  30. seen what you describe...
  31.  
  32. Adam
  33.  
  34.  
  35.